﻿using SmartDevice.Models;
using Stylet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartDevice.Pages.Settings
{
    public class Page2ViewModel : Screen, IHandle<TimeEvent>
    {
        private readonly IEventAggregator _events;

        public Page2ViewModel(IEventAggregator events)
        {
            _events = events;
            _events.Subscribe(this);
        }

        public string RecvMsg { get; set; }
        public void Handle(TimeEvent Event)
        {
            RecvMsg = Event.Args.Message;
        }
    }
}
